/**
 * 系统内所有权限项
 * 注：一级或者二级路由必须和路由path相同
 */
export declare type PermissionType =
  // 超级管理员菜单
  // 企业管理
  | '/account/company'
  // 数据权限管理
  | '/account/dataPermission'
  // 策略项管理
  | '/system/strategy'
  // 语音识别厂商管理
  | '/system/voicerecognition'
  // TTS厂商管理
  | '/system/tts'
  // 账户管理
  | '/account'
  // 账户管理-用户管理
  | '/account/user'
  | '/account/user/add'
  | '/account/user/modify'
  | '/account/user/delete'
  | '/account/user/delete/batch'
  | '/account/user/status'
  | '/account/user/resetPwd'
  | '/account/user/delay' // 账号续期
  | '/account/user/editPhone' // 修改手机号
  // 账户管理-坐席管理
  | '/account/seat'
  | '/account/seat/add'
  | '/account/seat/modify'
  | '/account/seat/delete'
  | '/account/seat/status'
  | '/account/seat/resetPwd'
  // 账户管理-坐席组管理
  | '/account/seatGroup'
  | '/account/seatGroup/add'
  | '/account/seatGroup/modify'
  | '/account/seatGroup/adjust'
  | '/account/seatGroup/delete'
  // 账户管理-角色管理
  | '/account/role'
  | '/account/role/add'
  | '/account/role/modify'
  | '/account/role/permission/save'
  | '/account/role/delete'
  // 账户管理-组织机构管理
  | '/account/organization'
  | '/account/organization/add'
  | '/account/organization/modify'
  | '/account/organization/delete'
  // 账户管理-企业管理
  | '/account/company'
  | '/account/company/add'
  | '/account/company/modify'
  | '/account/company/delete'
  // 账户管理-数据权限管理
  | '/account/dataPermission'
  | '/account/dataPermission/add'
  | '/account/dataPermission/modify'
  | '/account/dataPermission/delete'
  | '/account/datapermission/rule/distribution'
  | '/account/datapermission/rule/distribution/delete'
  // 任务管理
  | '/task'
  // 任务管理-外呼任务
  | '/task/callTask'
  | '/task/callTask/add'
  | '/task/callTask/delete'
  | '/task/callTask/pause'
  | '/task/callTask/start'
  | '/task/callTask/export'
  | '/task/callTask/repeat'
  // 任务管理-通话记录-导出
  | '/downloadmanage/export'
  // 报表管理
  | '/report'
  // 报表管理-通话记录报表
  | '/report/callRecords'
  | '/report/callRecords/export'
  // 报表管理-坐席管理报表
  | '/report/seatManage'
  | '/report/seatManage/export'
  // 报表管理-通话意图报表
  | '/report/callIntention'
  | '/report/callIntention/export'

  // 企业账单
  | '/enterpriseBill'
  // 计费后台
  | '/billingSystem'

  // 操作日志
  | '/operationLog'
  // AI管理
  | '/ai'
  // AI管理-机器人管理
  | '/ai/robots'
  // AI管理-通知流程管理
  | '/ai/notifyFlows'
  // 客户管理
  | '/client'
  // 客户管理-号码属性管理
  | '/client/numAttr'
  | '/client/numAttr/add'
  | '/client/numAttr/modify'
  | '/client/numAttr/enable'
  | '/client/numAttr/delete'
  // 客户管理-号码组管理
  | '/client/numGroup'
  | '/client/numGroup/add'
  | '/client/numGroup/downloadTemplate'
  | '/client/numGroup/upload'
  | '/client/numGroup/uploadRecord'
  | '/client/numGroup/delete'
  // 客户管理-黑名单管理
  | '/client/blackList'
  | '/client/blackList/add'
  | '/client/blackList/downloadTemplate'
  | '/client/blackList/upload'
  | '/client/blackList/delete'
  // 客户管理-白名单管理
  | '/client/whiteList'
  | '/client/whiteList/add'
  | '/client/whiteList/delete'
  // 系统配置
  | '/system'
  // 系统配置-策略项管理
  | '/system/strategy'
  | '/system/strategy/add'
  | '/system/strategy/modify'
  | '/system/strategy/delete'
  // 系统配置-语音识别厂商管理
  | '/system/voicerecognition'
  | '/system/voicerecognition/add'
  | '/system/voicerecognition/modify'
  | '/system/voicerecognition/delete'
  // 系统配置-tts管理
  | '/system/tts'
  | '/system/tts/add'
  | '/system/tts/modify'
  | '/system/tts/delete'
  // 系统配置-资源池管理
  | '/system/resourcePool'
  | '/system/resourcePool/add'
  | '/system/resourcePool/detail'
  | '/system/resourcePool/modify'
  | '/system/resourcePool/delete'
  // 系统配置-主叫号码管理
  | '/system/mainNum'
  | '/system/mainNum/add'
  | '/system/mainNum/delete'
  // 系统配置-系统设置
  | '/system/systemSet'
  // 系统配置-企业设置
  | '/system/corporateSet'
  | '/system/corporateSet/callLimit' // 呼叫频次限制
  | '/system/corporateSet/smsChannel' // 短信通道设置
  // 系统配置-号码解密
  | '/system/phoneTranslate'
  // 运营数据监控
  | '/operationMonitor'
  // 系统监控
  | '/systemMonitor'
  // 系统监控-实时监控
  | '/systemMonitor/realTimeMonitor'
  | '/systemMonitor/realTimeMonitor/FS'
  | '/systemMonitor/realTimeMonitor/sessionCenter'
  // 监控
  | '/webMonitor'
  // 监控-坐席监控
  | '/webMonitor/seatMonitor'
  // 短信管理
  | '/smsManage'
  // 短信模板管理
  | '/smsManage/smsTemplate'
  | '/smsManage/smsTemplate/add'
  | '/smsManage/smsTemplate/modify'
  | '/smsManage/smsTemplate/delete'
  // 首页统计数据
  | '/data'
  // 坐席端-菜单(方便在管理端配置权限)
  // 坐席工作台
  | '/seats'
  // 个人数据统计
  | '/seats/home'
  // 我的录音
  | '/seats/soundManage'
  // 我的任务
  | '/seats/callTask'
  // 我的通话记录
  | '/seats/callRecord';

/**
 * 获取角色权限的入参
 */
export interface FetchPermissionParams {
  roleId: number;
}

/**
 * 获取角色权限的结果
 */
export interface FetchPermissionResponse {
  code: number;
  msg: string;
  tips: string;
  count: number;
  data: PermissionItem[];
}

/**
 * 每项 模块/菜单项/操作项 权限详情
 */
export interface PermissionItem {
  permissionTitle: string;
  permissionId: number;
  idParent: number;
  name?: string;
  url?: string;
  list?: PermissionItem[];
}
